package learn.emp02.ex18;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double totalMoney = scanner.nextDouble();
        int total = (int)(totalMoney * 100);
        int tenYuan = total / 1000;
        int fiveYuan = (total % 1000) / 500;
        int oneYuan = (total % 1000) % 500 / 100;
        int fiftyJiao = (total % 1000) % 500 % 100 / 50;
        int oneJiao = (total % 1000)% 500 % 100 % 50 / 10;
        int twoFen = (total % 1000) % 500 % 100 % 50 % 20 / 10;
        int oneFen = (total % 1000) % 500 % 100 % 50 % 20 % 2;
        System.out.println(tenYuan + " 张十元");
        System.out.println(fiveYuan + " 张五元");
        System.out.println(oneYuan + " 张一元");
        System.out.println(fiftyJiao + " 个五角");
        System.out.println(oneJiao + " 个一角");
        System.out.println(twoFen + " 个贰分");
        System.out.println(oneFen + " 个壹分");

        scanner.close();
    }
}